Package com.cisco.pt.ipc.sim.pdu.impl
Class EspHeaderImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.HeaderImpl
com.cisco.pt.ipc.sim.pdu.impl.EspHeaderImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected EspAuthprotected EspEncryptionprotected intprotected intprotected intprotected intprotected intFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.HeaderImpl
payloadFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getFieldType(String fieldName) intintintintintgetSpi()voidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetAuthenticationData(String authenticationData) voidsetEncryptionData(String encryptionData) voidsetEspAuthentication(EspAuth espAuthentication) voidsetEspEncryption(EspEncryption espEncryption) voidsetNextHeader(int nextHeader) voidsetPadding(int padding) voidsetPaddingLength(int paddingLength) voidsetSequenceNumber(int sequenceNumber) voidsetSpi(int spi) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.HeaderImpl
getPayload, setPayloadMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Header
getPayload, setPayloadMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
nextHeader
protected int nextHeader -
paddingLength
protected int paddingLength -
spi
protected int spi -
sequenceNumber
protected int sequenceNumber -
padding
protected int padding -
encryptionData
-
authenticationData
-
espEncryption
-
espAuthentication
-
-
Constructor Details
-
EspHeaderImpl
public EspHeaderImpl()
-
-
Method Details
-
getNextHeader
public int getNextHeader()- Specified by:
getNextHeaderin interfaceEspHeader- Returns:
- int Returns a int
-
setNextHeader
public void setNextHeader(int nextHeader) - Specified by:
setNextHeaderin interfaceEspHeader- Parameters:
nextHeader- Takes in a parameter of nextHeader
-
getPaddingLength
public int getPaddingLength()- Specified by:
getPaddingLengthin interfaceEspHeader- Returns:
- int Returns a int
-
setPaddingLength
public void setPaddingLength(int paddingLength) - Specified by:
setPaddingLengthin interfaceEspHeader- Parameters:
paddingLength- Takes in a parameter of paddingLength
-
getSpi
public int getSpi() -
setSpi
public void setSpi(int spi) -
getSequenceNumber
public int getSequenceNumber()- Specified by:
getSequenceNumberin interfaceEspHeader- Returns:
- int Returns a int
-
setSequenceNumber
public void setSequenceNumber(int sequenceNumber) - Specified by:
setSequenceNumberin interfaceEspHeader- Parameters:
sequenceNumber- Takes in a parameter of sequenceNumber
-
getPadding
public int getPadding()- Specified by:
getPaddingin interfaceEspHeader- Returns:
- int Returns a int
-
setPadding
public void setPadding(int padding) - Specified by:
setPaddingin interfaceEspHeader- Parameters:
padding- Takes in a parameter of padding
-
getEncryptionData
- Specified by:
getEncryptionDatain interfaceEspHeader- Returns:
- String Returns a String
-
setEncryptionData
- Specified by:
setEncryptionDatain interfaceEspHeader- Parameters:
encryptionData- Takes in a parameter of encryptionData
-
getAuthenticationData
- Specified by:
getAuthenticationDatain interfaceEspHeader- Returns:
- String Returns a String
-
setAuthenticationData
- Specified by:
setAuthenticationDatain interfaceEspHeader- Parameters:
authenticationData- Takes in a parameter of authenticationData
-
getEspEncryption
- Specified by:
getEspEncryptionin interfaceEspHeader- Returns:
- EspEncryption Returns a EspEncryption
-
setEspEncryption
- Specified by:
setEspEncryptionin interfaceEspHeader- Parameters:
espEncryption- Takes in a parameter of espEncryption
-
getEspAuthentication
- Specified by:
getEspAuthenticationin interfaceEspHeader- Returns:
- EspAuth Returns a EspAuth
-
setEspAuthentication
- Specified by:
setEspAuthenticationin interfaceEspHeader- Parameters:
espAuthentication- Takes in a parameter of espAuthentication
-
getFieldType
- Overrides:
getFieldTypein classHeaderImpl
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Overrides:
readin classHeaderImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-
pduRead
- Specified by:
pduReadin interfaceSignal- Overrides:
pduReadin classHeaderImpl
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classHeaderImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classHeaderImpl
-